package com.xquant.pricing.calc.entity.simple;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @Author: xpp -_- -_-
 * @Date: 2021/11/2 13:53
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EmbeddedStructure {
    public VanillaSpread getVanillaSpread() {
        return vanillaSpread;
    }

    public void setVanillaSpread(VanillaSpread vanillaSpread) {
        this.vanillaSpread = vanillaSpread;
    }

    @JsonProperty
    public VanillaSpread vanillaSpread;


    public class VanillaSpread{
        /**
         * //牛市价差 Bull 熊市价差 Bear
         */
        private String spreadType;
        /**
         * 低行权价比例
         */
        @JsonProperty
        private String LowerStrikeRate;
        /**
         * 高行权价比例
         */
        @JsonProperty
        private String UpperStrikeRate;

        public String getSpreadType() {
            return spreadType;
        }

        public void setSpreadType(String spreadType) {
            this.spreadType = spreadType;
        }


        public String getLowerStrikeRate() {
            return LowerStrikeRate;
        }

        public void setLowerStrikeRate(String lowerStrikeRate) {
            this.LowerStrikeRate = lowerStrikeRate;
        }

        public void setUpperStrikeRate(String upperStrikeRate) {
            this.UpperStrikeRate = upperStrikeRate;
        }

        public String getUpperStrikeRate() {
            return UpperStrikeRate;
        }
    }
}
